package com.project.bean;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

/**
 *
 */
public class InvitationBane {
    /**编号*/
    private Integer id;
    /**主贴主题*/
    private String name;
    /**作者*/
    private UserBean user;
    /**发帖时间*/
    private LocalDate date = LocalDate.now();
    /**回帖数量*/
    private Integer replyNum;
    /**回帖集合*/
    private List<SpeakBean> List;
    /**频道*/
    private ChannelBane channel;
    /**主贴内容*/
    private String content;

    public InvitationBane() {
    }

    public InvitationBane(String name, Integer  id, Integer channel2, String content) {
        this.name = name;
        this.user = new UserBean();
        user.setId(id);
        this.channel =  new ChannelBane();
        channel.setId(channel2);
        this.content=content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
     this.date = date;
    }

    public Integer getReplyNum() {
        return replyNum;
    }

    public void setReplyNum(Integer replyNum) {
        this.replyNum = replyNum;
    }

    public java.util.List<SpeakBean> getList() {
        return List;
    }

    public void setList(java.util.List<SpeakBean> list) {
        List = list;
    }

    public ChannelBane getChannel() {
        return channel;
    }

    public void setChannel(ChannelBane channel) {
        this.channel = channel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        content = content;
    }

    @Override
    public String toString() {
        return "InvitationBane{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", user=" + user +
                ", Date=" + date +
                ", replyNum=" + replyNum +
                ", List=" + List +
                ", channel=" + channel +
                ", Content='" + content + '\'' +
                '}';
    }
}
